package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.management.entity.ConfProbeInterface;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 探针接口配置-Mapper接口
 * @author zfsn
 * @date 2023-4-17
 */
@Mapper
public interface ConfProbeInterfaceMapper extends BpmBaseMapper<ConfProbeInterface> {

	/**
	 * 通过probeId查询
	 * @param probeId
	 * @return
	 */
	List<ConfProbeInterface> queryInterfaceInfoByProbeId(@Param("probeId") Integer probeId);

	/**
	 * 通过probeId删除
	 * @param probeId
	 */
	void deleteInterfaceInfoByProbeId(@Param("probeId") Integer probeId);

	/**
	 * 新增
	 * @param list
	 */
	void addInterfaceInfo(@Param("list") List<ConfProbeInterface> list);

	/**
	 * 通过probeId分页查询
	 * @param page
	 * @param probeId
	 * @return
	 */
	List<ConfProbeInterface> selectByProbeId(Page<ConfProbeInterface> page, @Param("probeId") Integer probeId);

	/**
	 * 通过id批量删除
	 * @param idList
	 */
	void deleteInterfaceByIds(@Param("list") List<Integer> idList);
}